package com.isesol.ime.rest.api;

import com.google.common.collect.*;
import com.isesol.api.rest.annoations.*;
import com.isesol.api.rest.model.base.*;
import com.isesol.arch.common.model.*;
import com.isesol.ime.dto.*;
import com.isesol.ime.entity.*;
import com.isesol.ime.manager.*;
import com.isesol.ime.rest.model.param.*;
import com.isesol.ime.service.*;
import org.springframework.data.domain.*;
import org.springframework.stereotype.*;
import org.springframework.transaction.annotation.*;

import javax.annotation.*;
import java.util.*;

/**
 * 报文管理
 *
 * @author
 */
@Service
@RestServiceClass(url = "ime")
public class MessageParamResource extends BusinessResources{

	/**
	 * 报文管理 Manager
	 */
	@Resource
	MessageParamManager messageParamManager;

	@Transactional
	@RestServiceMethod(url = "messageParam/del")
	public void del(@RestParam(name = "id") long id) throws Exception{

		LOGGER.info("【报文管理】message/del接口调用,id={}", id);

		MessageParam mp=messageParamManager.get(id);
		mp.setMessage(null);
		messageParamManager.delete(id);

	}

}